package com.lc.demo;

import dagger.Module;
import dagger.Provides;
import lc.com.architecture.dagger.scope.FragmentScope;

/**
 * @author LiuChao
 * @describe
 * @date 2017/11/14
 * @contact email:450127106@qq.com
 */
@Module
public class MainModule {
    private MainView mView;

    public MainModule(MainView view) {
        mView = view;
    }

    @FragmentScope
    @Provides
    public MainView provideMainView() {
        return mView;
    }

    @FragmentScope
    @Provides
    public MainModel provideMainModel() {
        return new MainModel();
    }

}
